import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  { path: "/", redirect: "/video" },
  {
    path: "/video",
    name: "Video",
    component: () =>
      import("../views/VideoShow.vue"),
  },
  {
    path: "/image",
    name: "Image",
    component: () =>
      import("../views/ImageShow.vue"),
  },
  {
    path: "/article",
    name: "Article",
    component: () =>
      import("../views/ArticleShow.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;
